package com.pur.zsms.pmsnmanage.menu.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.pur.zsms.common.exception.GenericException;
import com.pur.zsms.pmsnmanage.menu.dao.IMenuDao;
import com.pur.zsms.pmsnmanage.menu.po.MenuPo;
import com.pur.zsms.pmsnmanage.menu.service.IMenuService;

@Service("menuService")
public class MenuServiceImpl implements IMenuService{
	@Resource(name="menuDao")
	private IMenuDao menuDao;
	
	public void setMenuDao(IMenuDao menuDao) {
		this.menuDao = menuDao;
	}

	@Override
	public List<MenuPo> findMenuList() throws GenericException {
		// TODO Auto-generated method stub
		return menuDao.findMenus();
	}

	@Override
	public MenuPo findMenu(String menuId) throws GenericException {
		// TODO Auto-generated method stub
		return menuDao.findMenu(menuId);
	}

}
